package com.hy;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@EnableDubbo
@ServletComponentScan //用于扫描所有的Servlet、filter、listener
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@EnableNacosConfig(globalProperties = @NacosProperties(serverAddr = "127.0.0.1:8848"))
@NacosPropertySource(dataId = "testDataId", autoRefreshed = true)
public class DubboNacosConsumerAPPlication {

	public static void main(String[] args) {
		SpringApplication.run(DubboNacosConsumerAPPlication.class,args);
		System.out.println(
		"////////////////////////////////////////////////////////////////////\n" +
		"//                          _ooOoo_                               //\n" +
		"//                         o8888888o                              //\n" +
		"//                         88\" . \"88                              //\n" +
		"//                         (| ^_^ |)                              //\n" +
		"//                         O\\  =  /O                              //\n" +
		"//                      ____/`---'\\____                           //\n" +
		"//                    .'  \\\\|     |//  `.                         //\n" +
		"//                   /  \\\\|||  :  |||//  \\                        //\n" +
		"//                  /  _||||| -:- |||||-  \\                       //\n" +
		"//                  |   | \\\\\\  -  /// |   |                       //\n" +
		"//                  | \\_|  ''\\---/''  |   |                       //\n" +
		"//                  \\  .-\\__  `-`  ___/-. /                       //\n" +
		"//                ___`. .'  /--.--\\  `. . ___                     //\n" +
		"//              .\"\" '<  `.___\\_<|>_/___.'  >'\"\".                  //\n" +
		"//            | | :  `- \\`.;`\\ _ /`;.`/ - ` : | |                 //\n" +
		"//            \\  \\ `-.   \\_ __\\ /__ _/   .-` /  /                 //\n" +
		"//      ========`-.____`-.___\\_____/___.-`____.-'========         //\n" +
		"//                           `=---='                              //\n" +
		"//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //\n" +
		"//             佛祖保佑       永不宕机      永无BUG                //\n" +
		"//(♥◠‿◠)ﾉﾞ ZTB workflow Client Successful Startup  ლ(´ڡ`ლ)ﾞ //");
	}

}